<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      sshfs-3.7.0
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.79.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-9.1">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 9.1
      </h4>
      <h3>
        Chapter&nbsp;5.&nbsp;File Systems and Disk Management
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="smartmontools.html" title=
          "smartmontools-7.1">Prev</a>
          <p>
            smartmontools-7.1
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="xfsprogs.html" title=
          "xfsprogs-5.4.0">Next</a>
          <p>
            xfsprogs-5.4.0
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="filesystems.html" title=
          "Chapter&nbsp;5.&nbsp;File Systems and Disk Management">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="sshfs" name="sshfs"></a>sshfs-3.7.0
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to Sshfs
        </h2>
        <p>
          The <span class="application">Sshfs</span> package contains a
          filesystem client based on the SSH File Transfer Protocol. This is
          useful for mounting a remote computer that you have ssh access to
          as a local filesystem. This allows you to drag and drop files or
          run shell commands on the remote files as if they were on your
          local computer.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "https://github.com/libfuse/sshfs/releases/download/sshfs-3.7.0/sshfs-3.7.0.tar.xz">
                https://github.com/libfuse/sshfs/releases/download/sshfs-3.7.0/sshfs-3.7.0.tar.xz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: 0a1414bfad323d9f3d7aaccdec671e06
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 52 KB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 1.9 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: less than 0.1 SBU
              </p>
            </li>
          </ul>
        </div>
        <h3>
          Sshfs Dependencies
        </h3>
        <h4>
          Required
        </h4>
        <p class="required">
          <a class="xref" href="fuse.html" title="Fuse-3.9.0">Fuse-3.9.0</a>,
          <a class="xref" href="../general/glib2.html" title=
          "GLib-2.62.4">GLib-2.62.4</a>, and <a class="xref" href=
          "openssh.html" title="OpenSSH-8.2p1">OpenSSH-8.2p1</a>.
        </p>
        <h4>
          Optional
        </h4>
        <p class="optional">
          <a class="xref" href="../general/python-modules.html#docutils"
          title="docutils-0.16">docutils-0.16</a> (required to build the man
          page)
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/sshfs">http://wiki.linuxfromscratch.org/blfs/wiki/sshfs</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of Sshfs
        </h2>
        <p>
          Install <span class="application">Sshfs</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class="command">mkdir build &amp;&amp;
cd    build &amp;&amp;
          
meson --prefix=/usr .. &amp;&amp;
ninja</kbd>
</pre>
        <p>
          This package does not come with a test suite.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">ninja install</kbd>
</pre>
      </div>
      <div class="using" lang="en" xml:lang="en">
        <h2 class="sect2">
          Using Sshfs
        </h2>
        <p>
          To mount an ssh server you need to be able to log into the server.
          For example, to mount your remote home folder to the local
          ~/examplepath (the directory must exist and you must have
          permissions to write to it):
        </p>
        <pre class="userinput">
<kbd class="command">sshfs example.com:/home/userid ~/examplepath</kbd>
</pre>
        <p>
          When you've finished work and want to unmount it again:
        </p>
        <pre class="userinput">
<kbd class="command">fusermount3 -u ~/example</kbd>
</pre>
        <p>
          You can also mount an <span class="application">sshfs</span>
          filesystem at boot by adding an entry similar to the following in
          the <code class="filename">/etc/fstab</code> file:
        </p>
        <pre class="screen">
<code class=
"literal">userid@example.com:/path /media/path fuse.sshfs _netdev,IdentityFile=/home/userid/.ssh/id_rsa 0 0</code>
</pre>
        <p>
          See <span class="command"><strong>man 1 sshfs</strong></span> and
          <span class="command"><strong>man 8 mount.fuse</strong></span> for
          all available mount options.
        </p>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Program:</strong>
              <span class="segbody">sshfs</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Libraries:</strong>
              <span class="segbody">None</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directories:</strong>
              <span class="segbody">None</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="sshfs-prog" name="sshfs-prog"></a><span class=
                    "term"><span class=
                    "command"><strong>sshfs</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    mounts an <span class=
                    "command"><strong>ssh</strong></span> server as a local
                    file system.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-17 13:54:09 -0800
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="smartmontools.html" title=
          "smartmontools-7.1">Prev</a>
          <p>
            smartmontools-7.1
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="xfsprogs.html" title=
          "xfsprogs-5.4.0">Next</a>
          <p>
            xfsprogs-5.4.0
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="filesystems.html" title=
          "Chapter&nbsp;5.&nbsp;File Systems and Disk Management">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
